package jpm.common;

import static org.junit.Assert.assertEquals;
import jpm.common.JPMException.ErrorCode;

import org.junit.Test;

public class JPMExceptionTest {

	@Test
	public void allTests() {
		JPMException jpmException = new jpm.common.JPMException().errorCode(
				ErrorCode.ERROR_ASSERT_FAIL).message("assert fail");
		
		assertEquals(ErrorCode.ERROR_ASSERT_FAIL, jpmException.getErrorCode());
		assertEquals("assert fail", jpmException.getUserFriendlyMessage());
	}
}
